//
//  GROrderListModel.m
//  YC_GRice
//
//  Created by luojinrong11 on 2018/7/21.
//  Copyright © 2018年 YeCai. All rights reserved.
//

#import "GROrderListModel.h"
#import "GRReturnResonModel.h"
@implementation GROrderListModel
- (BOOL)modelCustomTransformFromDictionary:(NSDictionary *)dic{
    NSArray *array = dic[@"goods"];
    if (Array(array)) {
        NSMutableArray *goodsArray = [NSMutableArray array];
        for (NSDictionary *dic in array) {
            GROrderListGoodModel *model = [GROrderListGoodModel yy_modelWithDictionary:dic];
            [goodsArray addObject:model];
        }
        self.goods = goodsArray;
    }
    
    NSArray * orderFollowArr = dic[@"orderFollow"];
    if (Array(orderFollowArr)) {
            NSMutableArray * followArr = [NSMutableArray array];
        for (NSDictionary * dic in orderFollowArr) {
            GRLogsticProgresModel * model = [GRLogsticProgresModel yy_modelWithDictionary:dic];
            [followArr addObject:model];
        }
        self.orderFollow = followArr;
        
    }
    
    return YES;
}
// 如果实现了该方法，则处理过程中会忽略该列表内的所有属性
+ (NSArray *)modelPropertyBlacklist {
    return @[
             @"goods",
             @"orderFollow"
             ];
}

@end

@implementation GROrderListGoodModel
- (BOOL)modelCustomTransformFromDictionary:(NSDictionary *)dic{
    NSMutableArray * evaluateImageArr = [NSMutableArray array];
    _goodsEvaluateImg = evaluateImageArr;

    return YES;
}
// 如果实现了该方法，则处理过程中会忽略该列表内的所有属性
+ (NSArray *)modelPropertyBlacklist {
    return @[
             @"goodsEvaluateImg"
     
             ];
}

@end
